

package com.hazelcast.jet.core;

/**
 * A facade that hides the details of Hazelcast partitioning SPI and exposes
 * just the partitioning strategy.
 *
 * @since Jet 3.0
 */
@FunctionalInterface
public interface DefaultPartitionStrategy {

    /**
     * Returns the Hazelcast partition ID of the given object.
     */
    int getPartition(Object object);
}
